<!doctype html>
<html lang="en">
<head>
	<meta charset="utf-8"/>
	<title>订单<{$order.orderNo}></title>
	
    <link rel="stylesheet" href="<{$smarty.const._CDN_}>/resource/wei/css/style.css?<{$versionCode}>">
    <link rel="stylesheet" href="/resource/bootstrap/bootstrap.css">
	<script type="text/javascript" src="/upload/zx/js/jquery/jquery-1.6.2.min.js"></script>
	<script type="text/javascript" src="/resource/js/jquery.jqprint-0.3.js"></script>

<script>
function  my_print ()
{
    $(".print").jqprint();
}
</script>

<style media=print> 
.noPrint{display:none;} 
</style> 

<style>
.print { margin: 20px; }
.btns { margin: 2em 1em; }
.btns a { padding: 6px 20px; background-color: #01d093; border: 1px solid green; color: #eee; }
*{
    margin: 0;padding: 0;
    margin: 0 auto;
}
table.gridtable {
    width: 525px;
    font-family: verdana,arial,sans-serif;
    font-size:12px;
    color:#333333;
    border: 1px solid #666;
    border-collapse: collapse;
    padding: 0;
    text-align: center;
}

table.gridtable th {
    border-width: 1px;
    padding: 0px;
    border-style: solid;
    border-color: #666666;
    background-color: #dedede;
}
table.gridtable td {
    padding: 0px;
    border: 1px solid #666;
    background-color: #ffffff;
}
.noPrint p { text-align: center;}
.noPrint p button { padding: 5px 10px; }
</style>
</head>

<body>



<div class="print">

    <table class="table" border="1" cellspacing="0" bordercolor="#666" style="border-collapse:collapse;width: 700px;text-align: center">
        <tr>
            <td colspan="8">销售出库单</td>
        </tr>
        <tr>
            <td style="width: 65px">会员编号</td>
            <td style="width: 50px"><{$order.uid}></td>
            <td>日期</td>
            <td><{"Y-m-d H:i:s"|@date:$order.created}></td>
            <td>订单编号</td>

            <td colspan="3"><{$order.orderNo}></td>
        </tr>
        <tr class="addr">
            <td>收货人</td>
            <td><{$order.addrUserName}></td>
            <td>快递方式</td>
            <td><{$order.deliverName}></td>
            <td>邮政编码</td>
            <td><{$order.addrPostalCode}></td>
            <td>电话</td>
            <td><{$order.addrTelNumber}></td>
        </tr>
        <tr class="addr">
            <td>收货地址</td>
            <td colspan="7"><{$order.addrDetailInfo}></td>
        </tr>
        <tr class="th">
            <!--<td style="width: 65px">序号</td>-->
            <td style="width:50px;">货位号</td>
            <td>条码</td>
            <td style="width: 200px" colspan="2">商品名称</td>
            <td style="width: 90px">规格</td>
            <td>售价</td>
            <td style="width: 45px">数量</td>
            <td>总价(元)</td>
        </tr>
        <{foreach from=$order.arrGoodsInfo item="goods" index="index"}>
        <tr>
            <!--<td><{$index}></td>-->
            <td><{$goods.goods.attr.positionNumber}></td>
            <td><{$goods.goods.attr.barCode}></td>
            <td colspan="2"><{$goods.goods.name}></td>
            <td><{$goods.goods.attr.desc}></td>
            <td>￥<{$goods.price/100|number_format:2}></td>
            <td><{$goods.quantity}>件</td>
            <td>￥<{$goods.money/100|number_format:2}></td>
        </tr>
        <{/foreach}>
        <tr>
            <td colspan=6>合计</td>

            <td><{$order.goodsTotalQuantity}>件</td>
            <td>￥<{$order.goodsTotalMoney/100|number_format:2}></td>
        </tr>
        <tr>
            <td>发票</td>
            <{if $order.invoice}>
            <td colspan="7">类型：<{$order.invoice.invoiceType}> 内容：<{$order.invoice.contentType}> 抬头：<{$order.invoice.invoiceTitle}></td>
            <{else}>
            <td colspan="7">不需要</td>
            <{/if}>
        </tr>
        <tr>
            <td>总金额</td>
            <td colspan="7">
                ￥<{$order.moneyTotal/100|number_format:2}> <{if $order.orderType == 'TOFRIENDS'}>(红包订单)<{/if}>;
                含运费: ￥<{$order.moneyDeliver/100|number_format:2}> ;
                金币抵扣: <{$order.moneyCoin}>金币(折合人民币￥<{$order.moneyCoin/100|number_format:2}>)
            </td>
        </tr>
        <tr>
            <td>备注</td>
            <td colspan="7">
                <{if $order.commentsUser}>
                买家: <{$order.commentsUser}>  
                <{else}>
                无
                <{/if}>
            </td>
        </tr>
    </table>

  <!--  <table class="gridtable" border="1" cellspacing="0" bordercolor="#666" style="border-collapse:collapse">
        <tr>
            <td colspan="8">销售出库单</td>
        </tr>

        <tr class="no">
            <td>会员编号</td>
            <td><{$order.uid}></td>
            <td>日期</td>
            <td><{"Y-m-d H:i:s"|@date:$order.created}></td>
            <td>&nbsp;</td>
            <td>订单编号</td>
            <td colspan="2"><{$order.orderNo}></td>
        </tr>

        <tr class="addr">
            <td>收货人</td>
            <td><{$order.addrUserName}></td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>电话</td>
            <td><{$order.addrTelNumber}></td>
        </tr>

        <tr class="addr">
            <td>收货地址</td>
	        <td colspan="3"><{$order.addrDetailInfo}></td>
            <td>快递方式</td>
	        <td><{$order.deliverName}></td>
            <td>邮政编码</td>
            <td><{$order.addrPostalCode}></td>
        </tr>

        <tr class="th">
            <td>序号</td>
            <td>货位号</td>
            <td>条码</td>
            <td>商品名称</td>
            <td>规格</td>
            <td>售价</td>
            <td>数量</td>
            <td>总价(元)</td>
        </tr>


	    <{foreach from=$order.arrGoodsInfo item="goods" index="index"}>
        <tr class="goods">
            <td><{$index}></td>
	        <td><{$goods.goods.attr.positionNumber}></td>
	        <td><{$goods.goods.attr.barCode}></td>
	        <td><{$goods.goods.name}></td>
	        <td><{$goods.goods.attr.desc}></td>
	        <td>￥<{$goods.price/100|number_format:2}></td>
            <td><{$goods.quantity}>件</td>
	        <td>￥<{$goods.money/100|number_format:2}></td>
        </tr>
	    <{/foreach}>

        <tr>
            <td>合计</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td><{$order.goodsTotalQuantity}>件</td>
            <td>￥<{$order.goodsTotalMoney/100|number_format:2}></td>
        </tr>


        <tr>
            <td>发票</td>
            <{if $order.invoice}>
	        <td colspan="7">类型：<{$order.invoice.invoiceType}> 内容：<{$order.invoice.contentType}> 抬头：<{$order.invoice.invoiceTitle}></td>
            <{else}>
	        <td colspan="7">不需要</td>
            <{/if}>
        </tr>

        <tr>
            <td>总金额</td>
	        <td colspan="7">
	            ￥<{$order.moneyTotal/100|number_format:2}> ;
                含运费: ￥<{$order.moneyDeliver/100|number_format:2}> ;
	            金币抵扣: <{$order.moneyCoin}>金币(折合人民币￥<{$order.moneyCoin/100|number_format:2}>)
            </td>
        </tr>

    </table>
-->

	<div class="order-detail-status" style="margin-left: 500px">
	    <h3 class="title">订单状态: <{$order.statusName}></h3>
	</div>
</div>

<div class="noPrint" > 
    <p><button onclick="my_print()">打印</button></p>
</div> 

</body>
</html>
